package io.iamting93.gateway.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author boting.guo
 * @date 2021/12/6 11:17
 */

@FeignClient(value = "service-user", path = "user")
public interface UserFeign {

    @GetMapping("/info/{token}")
    String info(@PathVariable("token") String token);
}
